package ru.ipo.dces.problemsviewer;

import javax.swing.*;
import javax.swing.plaf.basic.BasicButtonUI;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: ilya
 * Date: 02.06.11
 * Time: 17:17
 */
public class OpenButton extends JButton {

    public OpenButton() {
        setContentAreaFilled(false);
        setFocusable(false);
        setText("Нажмите, чтобы открыть задачу");
        setUI(new BasicButtonUI());
    }

    @Override
    protected void paintComponent(Graphics g) {
        g.setColor(Color.white);
        g.fillRect(0, 0, getWidth(), getHeight());
        super.paintComponent(g);
    }
}